package io.homework3;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;

public class Test2 {
    public static void main(String[] args) throws Exception {
        FileInputStream fis = new FileInputStream("pw1.txt");
        InputStreamReader isr = new InputStreamReader(fis, StandardCharsets.UTF_8);
        BufferedReader br = new BufferedReader(isr);

        String s;
        while ((s=br.readLine())!=null){
            System.out.println(s);
        }
        br.close();

    }
}
